﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;

namespace Kiosk.UserControls
{
    public class BaseKioskControl : UserControl
    {
        public event NavigateEventHandler NavigateEvent;
        protected void OnNavigate(NavigateEventArgs e)
        {
            NavigateEvent(this, e);
        }
    }

    public delegate void NavigateEventHandler(object sender, NavigateEventArgs e);
    
    public class NavigateEventArgs : EventArgs
    {
        public BaseKioskControl NewScreen { get; set; }

        public NavigateEventArgs(BaseKioskControl newScreen)
        {
            this.NewScreen = newScreen;
        }
        
    }
    
}
